package com.surprise.db.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.surprise.base.bo.IHasIdInterface;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * UserAuths.java
 * @author xuling
 * @since 2017年2月14日
**/
@Accessors(chain = true)
@Data
@Entity(name="user_auths")
public class UserAuths implements IHasIdInterface {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    protected Long id;
    @JsonIgnore
    protected Date addtime;
    @JsonIgnore
    protected Date updatetime;
    private long userid;
    private String identityType;
    private String identifier;
    private String credential;
}
